// ActionScript file
include "../service/DataService.as";
public class AuthService 
{
	private var _username:String;
	private var _password:String;
	private var _dataService;
	
	function AuthService(username:String,password:String)
	{
		this._password = username;
		this._password = password;
		this._dataService = new DataService();/* create new service */
	}
	
	public function loginButtonHandler()
	{
		this._dataService.getGateway().call(""); //call to method from server
	}
	[EventHandler(event="LoginEvent.LOGIN", properties="username,password")]
	public function login(username:String, password:String):void
	{
		//authenticationService.login(username, password,
			//new AsyncResponder(loginResult, loginFault));
	}
}